<?php
$db=new PDO("mysql:host=localhost", 'root', '12qwas');
$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE,PDO::FETCH_ASSOC);
$db->exec('create database if not exists db2');
$db->exec('use db2');
$db->exec("create table if not exists students (xh varchar(9) not null primary key,name varchar(50), tel  varchar(11))");
$r=$db->exec('delete from students');
echo "删除记录个数：{$r}条\n";
$r=$db->exec("insert into students(xh,name,tel) values
				 ('213110601','张三',66666666666),
				 ('213110602','李四',88888888888),
				 ('213110603','王五',99999999999),
				 ('213110701','杨柳',33333333333)");
echo "插入 $r 条记录\n";
$ps=$db->query("select * from students");//返回的结果集包含在$ps语句对象中
foreach ($ps as $row){
    echo "{$row['xh']}\t{$row['name']}\t{$row['tel']}\n";
}
`git config --global user.name "金艳丽"`;
`git config --global user.email "415713523@qq.com"`;
